<script type="text/javascript" charset="utf-8">
var ct="<?php echo $_POST['ct2']?>";
var h="<?php echo $_POST['heatFluxFree']?>";
var cr="<?php echo $_POST['crosswind']?>";
var von="<?if ($_POST['zeitraum']=="vonbis") echo $_POST['von'] ; else echo $_POST['zeitraum'];?>";
var bis="<?if ($_POST['zeitraum']=="vonbis") echo $_POST['bis'] ; else echo date("Y-m-d H:i:s", strtotime('0 day'));?>";
		$(document).ready(function() {
			
		    $('#bls900a').dataTable( {
		    	"aaSorting": [],
		    	"bJQueryUI": true,
				"sPaginationType": "full_numbers",
				"sSwfPath": "m/DataTables-1.8.2/extras/TableTools/media/swf/copy_cvs_xls_pdf.swf",
				"bProcessing": true,
				"bServerSide": true,
		        "sAjaxSource":"tabellen/BLS900A_server_processing.php?zeit_von="+von+"&zeit_bis="+bis+"&ct2="+ct+"&heatFluxFree="+h+"&crosswind="+cr,
		       
		       "sDom": '<"H"lr<?php if($_SESSION['berechtiger_user']==1)echo 'T'?>>t<"F"ip>',
		        //"sDom": 'T<"clear">lfrtip',

		        "oLanguage": {
		        	"sZeroRecords":"es wurde kein Messdaten in DB gefunden",
			    	"sInfoFiltered":"",
		            "sLengthMenu": 'Display <select>'+
		              '<option value="10">10</option>'+
		              '<option value="100">100</option>'+
		              '<option value="1000">1000</option>'+
		              '<option value="10000">10000</option>'+
		             
		              
		             // '<option value="-1">All</option>'+
		              '</select> records'
		          }
	          
		    
	          ,
		        
				"oTableTools": {
					"aButtons":[
						  
						 //"ajax",
						 {
		                        "sExtends": "csv",
		                        "sTitle": "BLS900A",
		                        "sPdfMessage": "Info",
		                        "sFileName": "BLS900A.csv.csv",
		                        "sPdfOrientation": "landscape",
		                        "sToolTip": "Save as CSV"
		                    },
						 {
		                        "sExtends": "pdf",
		                        "sTitle": "BLS900A",
		                        "sPdfMessage": "Info",
		                        "sFileName": "BLS900A.pdf.pdf",
		                        "sPdfOrientation": "landscape",
		                        "sToolTip": "Save as PDF"
		                    }

						
					]
					
				}
			
		    } );
		  
		} );

	
		</script>
		<h1 align="center">BLS900A</h1>
		<table cellpadding="0" cellspacing="0" border="0" class="display" id="bls900a">
	<thead>
		<tr>
			<th>BLS900A-Zeit</th>
		
		<?php if($_POST['ct2']=='ct2') echo "<th>CT2</th>";
			if($_POST['heatFluxFree']=='heatFluxFree') echo "<th>HeatFluxFree</th>";
			if($_POST['crosswind']=='crosswind') echo "<th>Cross Wind</th>";
			?>
		</tr>
	</thead>
	<tbody>
	
	<tr>
			<td colspan="5" class="dataTables_empty">Loading data from DB server</td>

		</tr>
	
		</tbody>
	<tfoot>
		<tr>
	
		</tr>
	</tfoot>
</table>

